package com.example.kotlindemo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import org.jetbrains.anko.button
import org.jetbrains.anko.editText
import org.jetbrains.anko.sdk27.coroutines.onClick
import org.jetbrains.anko.toast

import org.jetbrains.anko.verticalLayout

class SplashActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)
        verticalLayout {
            val name = editText()
            button("sello"){
                onClick { toast("hello ${name.text}") }
            }
            button("sello"){
                onClick { toast("hello ${name.text}") }
            }
            button("sello"){
                onClick { toast("hello ${name.text}") }
            }

        }
    }

}
